package com.aaa.product.service.impl;

import com.aaa.entity.Product;
import com.aaa.product.dao.ProductDao;
import com.aaa.product.service.IProductService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.web.bind.annotation.RequestBody;

import javax.annotation.Resource;

@Service
public class ProductService implements IProductService {
    @Resource
    private ProductDao productDao;
    @Override
    public Product findById(Long pid) {
        return productDao.selectById(pid);
    }
}
